package com.chuangjiangx.member.basic.ddd.domain.service.model;

import com.chuangjiangx.member.basic.ddd.domain.model.OperationInfo;

import com.chuangjiangx.member.basic.ddd.domain.model.MemberId;
import lombok.Getter;

import java.math.BigDecimal;

@Getter
public class SubtractScore {

    /**
     * 会员id
     */
    private MemberId memberId;

    /**
     * 本次操作的积分
     */
    private Long score;
    /**
     * 交易金额
     */
    private BigDecimal amount;

    /**
     * 支付订单号
     */
    private String payOrderNumber;

    /**
     * 退款单号
     */
    private String refundOrderNumber;

    /**
     * 本次积分说明
     */
    private String remark;

    /**
     * 注册的门店id
     */
    private OperationInfo operationInfo;

    public SubtractScore(String payOrderNumber, String refundOrderNumber,
                         MemberId memberId, Long score,
                         String remark, OperationInfo operationInfo) {
        this.payOrderNumber = payOrderNumber;
        this.refundOrderNumber = refundOrderNumber;
        this.memberId = memberId;
        this.score = score;
        this.remark = remark;
        this.operationInfo = operationInfo;
    }


    public SubtractScore(String payOrderNumber, String refundOrderNumber,
                         MemberId memberId, Long score, BigDecimal amount,
                         String remark, OperationInfo operationInfo) {
        this.payOrderNumber = payOrderNumber;
        this.refundOrderNumber = refundOrderNumber;
        this.memberId = memberId;
        this.score = score;
        this.amount = amount;
        this.remark = remark;
        this.operationInfo = operationInfo;
    }
}
